-- GENERATED SPELL FOR [Bloodfury Slayer] --


function spell0_4024(pUnit, Event) --@Curse of Recklessness,n/a--
pUnit:FullCastSpellOnTarget(16231,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4024', 647, 1)
end

function spell1_4024(pUnit, Event) --@Execute,n/a--
pUnit:FullCastSpellOnTarget(7160,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4024', 0, 1)
end

function Sorts_4024(pUnit, Event)
local choix_sorts_4024 = math.random(0, 1)
if choix_sorts_4024 == 0 then
pUnit:RegisterEvent('spell0_4024', 1, 1)
end
if choix_sorts_4024 == 1 then
pUnit:RegisterEvent('spell1_4024', 1, 1)
end
end

function mob4024_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4024', math.random(1500, 3000), 1)
end

function mob4024_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4024_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4024_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4024, 1, 'mob4024_Action')
RegisterUnitEvent(4024, 2, 'mob4024_Leave')
RegisterUnitEvent(4024, 3, 'mob4024_Kill')
RegisterUnitEvent(4024, 4, 'mob4024_Die')
